//
//  Tool.h
//  ChartsDemo
//
//  Created by wusiping on 2021/4/1.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface Tool : NSObject

// 是否是血氧设备
+ (BOOL)isBloodWithName:(NSString *)name;

// 是否是胎心设备
+ (BOOL)isFetalHeartWithName:(NSString *)name;

// 是否是手表设备
+ (BOOL)isWatchWithName:(NSString *)name;

// 是否是高原血氧仪设备
+ (BOOL)isPlateauWithName:(NSString *)name;

// 是否是盆底肌设备
+ (BOOL)isPelvicMusclesWithName:(NSString *)name;

// 判断设备类型
+ (ARTDeviceType)deviceTypeWithName:(NSString *)name;

// 获取设备mac地址
+ (NSString *)macAddressWithAdvertisement:(NSDictionary *)advertisementData;

+ (UIViewController *)getCurrentVC;
// 秒格式化 时分秒
+ (NSString *)getMMSSFromSS:(NSInteger)seconds;
// 秒格式化 分秒
+ (NSString *)get_MMSS_FromSS:(NSInteger)seconds;

/**
 * 将时间戳转化为字符串类型的时间
 *
 * @param timestamp 时间戳
 * @param format 转化为字符串后的格式 例如：yyyy-MM-dd HH:mm:ss
 * @return 转化后的字符串
 */
+ (NSString *)art_timestampSwitchTime:(long)timestamp
                         andFormatter:(NSString *)format;

/// 播报语音
+ (void)startingVoiceBroadcastWithAudioName:(NSString *)audioName;

/// 计算年龄
/// @param startTime <#startTime description#>
+ (NSInteger)calculateAgeWithSartDate:(NSString *)startTime;

/// 回到实时页面
+ (void)skipToTabBarController;

/// 获取盆底肌所有病症
+ (NSArray <NSString *> *)getPelvicMusclesTotalSymptoms;

// 秒转化成分秒 --字符串
+ (NSString *)getNormalMMSSWithSS:(NSInteger)seconds;

@end

NS_ASSUME_NONNULL_END
